package com.yi.servicemap.service;

import com.yi.internalcommon.dto.ResponseResult;
import com.yi.servicemap.remote.TrackClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;

@Service
public class TrackService {
    @Autowired
    private TrackClient trackClient;
    /**
     * 创建轨迹
     * @param tid
     * @return
     */
    @PostMapping("/add")
    public ResponseResult add(String tid){
        return trackClient.add(tid);
    }
}
